<?php

class ChatModel extends Model {
    public $tableName = "chat";

    public static $UPDATE_PERIOD = 3;

    public function __construct() {
        parent::__construct();
    }

    public function getSender() {
        $user = Model::factory('auth', $this->sender_id);
        return $user;
    }

    public function getRecipient() {
        $user = Model::factory('auth', $this->recipient_id);
        return $user;
    }

}

?>
